package com.teamall.core.common;

public enum CommonEnum {
	ISDEL_T("T","已删除"),
	ISDEL_F("F","未删除"),
	ISENABLE_T("T","启用"),
	ISENABLE_F("F","禁用"),
	TRUE("T","是"),
	FALSE("F","否"),
	RESOURCETYPE_MENU("MENU","菜单资源"),
	RESOURCETYPE_BUTTON("BUTTON","按钮资源"),
	ISEXTEND_T("T","是"),
	ISEXTEND_F("F","否"),
	
	//REDIS
	REDIS_ATTR_NAME_KEY("ATTRNAME","商品属性名KEY前缀"),
	REDIS_ATTR_VAL_KEY("ATTRVAL","商品属性值KEY前缀"),
	REDIS_DICT_KEY("DICT","码表缓存KEY前缀"),
	REDIS_AREA_KEY("AREA","区域缓存KEY前缀"),
	REDIS_GOODS_CATEGORY_KEY("GOODSCATEGORY","商品分类缓存KEY前缀"),
	REDIS_GOODS_BRAND_KEY("GOODSBRAND","商品品牌缓存KEY前缀"),
	REDIS_CATEGORY_BRAND_KEY("GOODS_CATEGORY_BRAND","商品大分类下所有品牌缓存KEY前缀"),
	REDIS_CATEGORY_ATTR_KEY("GOODS_CATEGORY_ATTR","商品大分类下所有属性缓存KEY前缀"),
	REDIS_SMS_REG_KEY("SMS_REG","短信验证注册类型KEY前缀"),
	REDIS_SMS_LOGIN_KEY("SMS_LOGIN","短信验证登录类型KEY前缀"),
	REDIS_SMS_FINDPWD_KEY("SMS_FINDPWD","短信验证找回密码类型KEY前缀"),
	REDIS_SMS_VALIDATE_KEY("SMS_VALIDATE","短信验证验证类型KEY前缀"),
	REDIS_SMS_BIND_KEY("SMS_BIND","短信验证验证类型KEY前缀"),
	REDIS_SMS_VALIDATENEW_KEY("SMS_VALIDATENEW","短信验证验证类型KEY前缀"),
	
	//用户操作日志类型
    USER_LOG_TYPE_LOGIN("LOGIN","登录"),
    USER_LOG_TYPE_UPDATEPWD("UPDATEPWD","修改密码"),
    USER_LOG_TYPE_BINDTEL("BINDTEL","绑定手机"),
    USER_LOG_TYPE_BINDMAIL("BINDMAIL","绑定邮箱"),
    USER_LOG_TYPE_UPDATETEL("UPDATETEL","修改手机"),
    USER_LOG_TYPE_UPDATEMAIL("UPDATEMAIL","修改邮箱"),
    USER_LOG_TYPE_FINDPWD("FINDPWD","找回密码"),
    USER_LOG_TYPE_STORERETURN("STORERETURN","入驻申请拒绝"),
    USER_LOG_TYPE_STOREPASS("STOREPASS","入驻申请通过"),
    
	//短信、邮箱发送日志类型
	SEND_TYPE_PHONE("PHONE","注册"),
	SEND_TYPE_MAIL("MAIL","注册"),
	SEND_OPER_TYPE_REG("REG","注册"),
	SEND_OPER_TYPE_LOGIN("LOGIN","登录"),
	SEND_OPER_TYPE_FINDPWD("FINDPWD","找回密码"),
	SEND_OPER_TYPE_SENDPWD("SENDPWD","发送密码"),
	SEND_OPER_TYPE_VALIDOLD("VALIDOLD","验证旧手机、邮箱"),
	SEND_OPER_TYPE_VALIDNEW("VALIDNEW","验证新手机、邮箱"),
	SEND_OPER_TYPE_FIRSTBING("FIRSTBING","新绑定手机,邮箱"),
	SEND_OPER_TYPE_STORERETURN("STORERETURN","入驻申请拒绝"),
	SEND_OPER_TYPE_STOREPASS("STOREPASS","入驻申请通过"),
	
	
    
	MQTYPE_EMAIL("EMAIL","邮箱"),
	MQTYPE_SMS("SMS","短信"),
	TASK_STATUS_ZK("0","在库"),
	TASK_STATUS_PZ("1","配载"),
	TASK_STATUS_ZT("2","在途"),
	TASK_STATUS_JS("3","结束"),
	TASK_STATUS_ZF("4","作废"),
	TASK_STATUS_S0("0","在库"),
	TASK_STATUS_S1("1","配载"),
	TASK_STATUS_S2("2","在途"),
	TASK_STATUS_S3("3","结束"),
	TASK_STATUS_S4("4","作废"),	
	TASK_ERROR_S0("0","正常"),
	TASK_ERROR_S1("1","退货"),
	TASK_ERROR_S2("2","异常件"),
	TASK_ERROR_S3("3","订单费用"),
	TASK_ERROR_S4("4","任务费用"),
	FEE_STATUS_ADD("0","发起"),
	FEE_STATUS_CANCEL("1","取消"),
	FEE_STATUS_END("2","结束"),
	TRIP_STATUS_XINDAN("0","新单"),
	TRIP_STATUS_ZAITU("1","在途"),
	TRIP_STATUS_JIESHU("2","结束"),
	TRIP_STATUS_ZUOFEI("3","作废"),
	
	DEDICATETASK_STATUS_S0("0","待配载"),
	DEDICATETASK_STATUS_S1("1","已配载");
	
	private String name;
	private String code;
	
	// 构造方法
    private CommonEnum(String code, String name) {
        this.name = name;
        this.code = code;
    }
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	public static void main(String[] args) {
		System.out.println(CommonEnum.ISDEL_T.getCode()+":"+CommonEnum.ISDEL_T.getName());
		System.out.println(CommonEnum.ISDEL_F.getCode()+":"+CommonEnum.ISDEL_F.getName());
		
		System.out.println(CommonEnum.ISENABLE_T.getCode()+":"+CommonEnum.ISENABLE_T.getName());
		System.out.println(CommonEnum.ISENABLE_F.getCode()+":"+CommonEnum.ISENABLE_F.getName());
	}
	
}
